<?php
require_once '../config/config.php';

?>

<?php 
$connect = mysql_connect( $host. ":" . $post , $user ,$password) or die(mysql_error("not seach mysql"));

mysql_select_db($name ,$connect);

function getData($query){
    global $connect;
    $pages = array();
    $data = mysql_query($query, $connect);
    while ($row = mysql_fetch_assoc($data)){
        $pages[] = $row;}
return  $pages;
    
}


?>
